package net.dengzixu.java.homework.period14.homework3;

/**
 * @author Deng Zixu <admin@dengzixu.com>
 */
public class PointTest {
    public static void main(String[] args) {
        Point point1 = new Point(0, 10);
        Point point2 = new Point(0, 100);

        System.out.println("两点间距离为:" + point2.distance(point1));

        point2.move(point1);
        System.out.println("将点二移动到点后的坐标为: x: " + point2.x + "y: " + point2.y);
    }
}
